package com.itheima.health.mapper;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderSettingMapper {

    // 根据日期查询预约设置数据
    long findCountByOrderDate(Date orderDate);

    // 根据预约日期修改可预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);

    // 批量导入预约设置数据
    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(Map map);

    // 根据日期查询预约设置数据
    OrderSetting findByOrderDate(Date date);

    // 根据日期修改预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
